package facade;

import java.io.IOException;
import java.io.Serializable;
import controller.EditorController;

/**
 * The Class EditorFacade.
 * This is a facade class. This class hides all the internal workings
 * of the application from the client. This is the only the class the client can access.
 */
public class EditorFacade implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 2196557451110395847L;

	/**
	 * Run application.
	 * This function is responsible for running the application. It hides all the internal
	   workings of the application from the client class. I creates an instance of the
	   editorController class.
	 * @throws NullPointerException the null pointer exception
	 * @throws IOException Signals that an I/O exception has occurred.
	 */
	public void runApplication() throws NullPointerException, IOException	{
		try	{
			EditorController applicationInstance = new EditorController();
		    applicationInstance.setVisible(true);
		}
		catch (NullPointerException e)	{
			System.err.println("null pointer exception has occurred");
		}
	}
}
